<?php
header ("content-type;text/html;charset=utf-8" );
$conn=@mysql_connect('localhost','root','') 
or die('数据库无法连接!');
mysql_set_charset('utf8')
@mysql_select_db('nuevideo',$conn)
or die('数据库不存在')；

$sql='select*from users';
$result=mysql-query($sqlstring,$conn);
$users=fetch_array(result);
//var_dump($users);
echo'<table border="1">';
echo'<tr><th>用户名</th></tr>';
	
foreach($arrs)
	

foreach ($users as $one) {
	echo'<tr>';
	echo'<td>'.$one['uname'].'</td>'
	echo'</tr>'}

if($one['gender']==0)[$sex='nan';]
else{$sex='nv';}
ehco'<td>'.$sex.'</td>';

ehco'<td>'.$one.'hobby-';



function fetch_array($Results){
	$arrs=array();
while($Results&&($row=mysql_fetch_assoc(
	$Results))!==FALSE){
	


	$arrs[]=$row;
	return arrs;

}
}


?>